Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Don't try to copy items by serializing and deserializing them #522

Merged
merged 1 commit into from Sep 23, 2017

Conversation

maxbrunsfeld
Copy link
Contributor

@maxbrunsfeld maxbrunsfeld commented Sep 23, 2017

Fixes #234

Previously, when splitting an item using its tab's context menu, if the item did not have a .copy() method, we would try to copy the item by serializing it and then deserializing the serialized state. The problem with this is that for some items (e.g. the tree-view), deserialization always returns the same instance.

I think it's more explicit for copyable items to just implement a .copy() method. Before releasing this change, I need to add a .copy method to some of Atom's pane item classes:

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant